
<div class="container article-area">
	<div class="row breadcrumbs"><?php	wheatv_breadcrumbs();?></div>
	<div class="row">
	<h1 class="text-center aritcle-title"><?php the_title(); ?></h1>

	</div>

	<div class="row">

		<div class="article-meta">

			<span class="userinfo"><i class="icofont icofont-user"></i>&nbsp;<?php  echo get_the_author_meta( 'display_name', $post->post_author ); ?></span> 
			<span class="date"><i class="icofont icofont-time"></i>&nbsp;<?php the_time('Y-m-d'); ?></span> 
			<span class="views">&nbsp;&nbsp;&nbsp;&nbsp;浏览量：
				<!-- <i class="icofont icofont-fire"></i> -->
			<?php setPostViews(get_the_ID()); echo number_format(getPostViews(get_the_ID())); ?></span> 


		</div>

	</div>
	


<div class="row">
<div class="col-lg-9 col-md-12 col-sm-12 col-12 sidebar-padding-right">
	<div class="singledes">
		<div class="singledes-content">
		<?php if (has_excerpt()) {
                echo $description = trim(get_the_excerpt()); //文章编辑中的摘要
            }else {
                $article_des=mb_strimwidth(strip_tags(apply_filters('the_content', $post->post_content)), 0, 170,"……");
                $str = mb_ereg_replace('^(　| )+', '', $article_des);
                $str = mb_ereg_replace('(　| )+$', '', $str);
                echo $str ; //文章编辑中若无摘要，自定截取文章内容字数做为摘要
            } ?>
		</div>
	</div>
	<?php
		
		if ( is_active_sidebar( 'bottom-article' ) ){

				dynamic_sidebar( 'bottom-article' );
			}


	?>


    <article class="article-content" id="article-content">

    <?php the_content(''); ?>
	
    </article>

	<div class="article-tag">
		<span class=""><i class="icofont icofont-tags"></i><?php the_tags('', ' ', ''); ?> 
	</div>
    <div class="page-next">
        <div class="pre"><?php previous_post_link('  上一篇：   %link'); ?></div>
        <div class="next"><?php next_post_link('  下一篇：  %link '); ?></div>
    	
    	
    </div>

</div>
<aside class="col-lg-3 col-md-12 col-sm-12 col-12 sidebar sidebar-left">
			<div id="sidebar">
				<div class="widget">
					<?php include_once(TEMPLATEPATH . "/sidebar.php"); ?>
				</div>
			</div>
		</aside>
</div>
</div>
